package com.dragon.mapper;

import com.dragon.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface UserDao {

    @Select("select * from tbl_user where username = #{account} and type='管理员' ")
    int isHasUser(String account);

    @Select("select * from tbl_user where username = #{username} and password = #{password} ")
    User isRightPassword(@Param("username") String username, @Param("password") String password);
}
